package edu.liuzihao.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Service;
/**
 * @author 刘子浩
 * @date 2023/4/22 19:38
 **/


//配置类注解
@Configuration
//包扫描，主要扫描的是项目中的ActorServiceImpl类
@ComponentScan("edu.liuzihao") //这里包设置得大一些,主要是关联了ActorServiceImpl类里
@Service

@PropertySource("classpath:jdbc.properties")
@Import({JdbcConfig.class, MyBatisConfig.class})
public class SpringConfig {
}

